package xyz.xpman.prisonerfitness.util;

import org.jetbrains.annotations.NotNull;

import java.util.Collection;

public class ArrayUtil {

    private ArrayUtil() {}

    public static String[] toStringArray(@NotNull Collection<String> collection) {
        String[] temp = new String[collection.size()];

        int i = 0;

        for (String value : collection) {
            temp[i++] = value;
        }
        return temp;
    }
}
